#include <iostream> 
using namespace std;
int src[101];
int main()
{
	int n;
	cin>>n;
	int sum_1=0;
	int sum_0=0;
	int sum_n=0;
	for(int i=0;i<n;i++){
		int temp;
		cin>>temp;
		if(temp>0){
			sum_1++;
		}
		else if(temp==0){
			sum_0++;
		}
		else sum_n++;
	}
	cout<<(float)sum_1/(float)n<<endl;
	cout<<(float)sum_n/(float)n<<endl;
	cout<<(float)sum_0/(float)n<<endl;
	return 0;
}
